public class Test {
    public static void main1(String[] args) {
//        int a = 2;
//        int b = 3;
//        System.out.println(a/b);

//        double a = 3.0;
//        int b = 2;
//        double c = a / b;
//        System.out.println(c);

//        int a = 3;
//        int b = 0;
//        System.out.println(a/b); // err
//        System.out.println(a%b); // err
    }

    public static void main2(String[] args) {
//        double a = 10.5;
//        double b = 2.0;

        double a = 11.5;
        double b = 2.0;

        System.out.println(a%b);
    }

    public static void main3(String[] args) {
        double a = 3.14;
        int b = 10;
        b += a; // b = (int)(b + a);
        System.out.println(b);

        // b = b + a; err
    }

    public static void main4(String[] args) {
//        int a = 10;
//        a++;
//        System.out.println(a);
//
//        int b = 10;
//        b--;
//        System.out.println(b);

        int a = 10;
        int b = ++a;
        System.out.println(a); // 11
        System.out.println(b); // 11

        int c = a++;
        System.out.println(c); // 11
        System.out.println(a); // 12
    }

    public static void main5(String[] args) {
        int a = 10;
        int b = 20;

        System.out.println(a > b); // false
        System.out.println(a >= b);// false
        System.out.println(a < b); // true
        System.out.println(a <= b);// true
        System.out.println(a == b);// false
        System.out.println(a != b);// true

    }

    public static void main6(String[] args) {
        int a = 10;
        int b = 20;
//        System.out.println(a == 10 && b == 20); // true
//        System.out.println(a == 10 && b > 100); // false
//        System.out.println(a > 100 && b == 20); // false
//        System.out.println(a > 100 && b > 100); // false

        System.out.println(a == 10 || b == 20); // true
        System.out.println(a == 10 || b > 100); // true
        System.out.println(a > 100 || b == 20); // true
        System.out.println(a > 100 || b > 100); // false
    }

    public static void main7(String[] args) {
        boolean flag = true;
        System.out.println(!flag);
    }

    public static void main8(String[] args) {
        int a = 10;
        System.out.println(a > 10 && a/0 == 0);
        System.out.println(a == 10 || a/0 == 0);
    }

    public static void main(String[] args) {

    }
}
